let express = require("express");
const bodyParser = require("body-parser");
const http = require("http");

// 路由
let reouter = express.Router();

// 加载模型数据库模块
let { record_list } = require("../config/dbconfig");

//修改用户表
reouter.post("/realtimeChannel", bodyParser.json(), async (req, res, next) => {
    const result = await record_list.findAndCountAll ({ raw: true });
  res.status(200).send({
    meta: {
      msg: "成功",
      status: 200,
    },
    data: {
      data: result,
    },
  });
});

module.exports = reouter;
